package com.tcp.c100w.c100w;

import com.tcp.c100w.c100w_remoting.netty.NettyServerConfig;

public class C100kStartup {
	public static void main(String[] args) {
		NettyServerConfig config = new NettyServerConfig();

		final C100kController c100k = new C100kController(config);
	     boolean initResult = c100k.initialize();
         if (!initResult) {
        	 c100k.shutdown();
             System.exit(-3);
         }
		
		Runtime.getRuntime().addShutdownHook(new Thread() {

			public void run() {
				c100k.shutdown();
			}
		});

		c100k.start();

	}
}
